<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #lv {
            color: green;
        }
        #huang {
            color: yellow;
        }
        input[type='text'],body>p {
            background-color: red;
        }
        body>div>div>p {
            color: pink;
        }
        div>div>p,
        div>div>div>p {
            background-color: yellow;
        }
        a:link{
            color: green;
        }
        a:visited {
            color: red;
        }
        a:hover {
            color: yellow;
        }
        a:active {
            color: pink
        }
    </style>
</head>
<body>
    <ul>
        <li>刘备</li>
        <li id="lv">关羽</li>
        <li class="huang">张飞</li>
    </ul>
    <p class="hong">香蕉</p>
    <p class="huang hong">苹果</p>
    <input type="text" class="hong">
    <input type="password" class="hong">
    <div>
        <p>p1</p>
        <div>
            <p>p2</p>
        </div>
        <div>
            <div>
                <p>p3</p>
            </div>
        </div>
    </div>
    <a href="http://www.tedu.cn">达内官网</a>

</body>
</html>